package edu.udel.mboch.towerdefense;

import java.io.Serializable;

public abstract class Terrain implements Serializable
{
	private static final long serialVersionUID = -3205586449834559565L;
	protected Position position;
	protected boolean buildable;
	
	public Terrain(Position position)
	{
		this.position = position;
	}
	
	public Position getPosition()
	{
		return position;
	}
	
	public boolean isBuildable()
	{
		return buildable;
	}
	
	public abstract void print();
	
	public String toString()
	{
		return position.toString() + " " + buildable;
	}
}
